<script setup lang="ts">
  import { usequanju } from '@/views/system/role/roleStore';
  import { computed } from 'vue';

  const todosStore = usequanju();
  const props = defineProps<{
    label: string;
    name: 'role' | 'state' | 'department';
    options: Array<any>;
  }>();
  const realOptions = computed(() => [{ label: '所有', value: 'all' }, ...props.options]);
</script>
<template>
  <div>
    <n-select v-model:value="todosStore.conditions[name]" :options="realOptions" size="small" />
  </div>
</template>
